function createSilverlight()
{
	Silverlight.createObjectEx({
		source: "Start.xaml",
		parentElement: document.getElementById("SilverlightControlHost"),
		id: "SilverlightControl",
		properties: {
			width: "100%",
			height: "100%",
			version: "1.1",
			enableHtmlAccess: "true"
		},
		events: {}
	});
	
	document.body.onload = function() {
      var silverlightControl = document.getElementById('SilverlightControl');
      if (silverlightControl)
      silverlightControl.focus();
    }
}

function maximizeWindow()
{
    window.moveTo(0, 0);
    window.resizeTo(screen.width, screen.height);
}